package Design_patterns.creator_mode.factory.simple_factory;

/**
 * @description: 咖啡店
 **/

public class CoffeeStore {
    public Coffee orderCoffee(String type) {
        SimpleCoffeeFactory scf = new SimpleCoffeeFactory();
        //调用生产咖啡的方法
        Coffee coffee = scf.createCoffee(type);

        //加配料
        coffee.addMilk();
        coffee.addSugar();


        return coffee;
    }
}
